package io.renren.modules.avanotes.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * 参考资料计划关系表
 *
 * @author zzr
 * @email 529742454@qq.com
 * @date 2022-02-22 10:47:49
 */
@Data
@TableName("material_schedule_relation")
public class MaterialScheduleRelationEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    public static String CN_ID = "id";
    public static String CN_MATERIAL_ID = "material_id";
    public static String CN_STUDY_ID = "study_id";

    /**
     * 关系id
     */
    @TableId
    private Integer id;
    /**
     * 参考资料id
     */
    private Integer materialId;
    /**
     * 计划id
     */
    private Long studyId;

    public MaterialScheduleRelationEntity() {
    }

    public MaterialScheduleRelationEntity(Integer materialId, Long studyId) {
        this.materialId = materialId;
        this.studyId = studyId;
    }
}
